﻿using DefCore.Core.QueryContexts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DefCore.Mapping
{
    public static class Context
    {
        private static CellQueryContext _CellQuery;
        public static CellQueryContext CellQuery
        {
           get 
           {
               if (_CellQuery == null)
                   _CellQuery = CellQueryContext.Create();

               return _CellQuery;
           }
        }

        private static StructureQueryContext _StructureQuery;
        public static StructureQueryContext StructureQuery
        {
            get
            {
                if (_StructureQuery == null)
                    _StructureQuery = StructureQueryContext.Create();

                return _StructureQuery;
            }
        }
    }
}
